﻿@{
    ViewBag.Title = "CREA-PA";
}

@{    
    var grid = new WebGrid(ViewBag.ListaFunc); 
}


@section featured
{
    <section>
        <div>
            <strong><h3>Sejam bem vindo @Html.Encode(User.Identity.Name)</h3></strong>             
            
            <p>
               @ViewBag.qtde_os_pend_analise
            </p>
            <br />

   @{
   if (ViewBag.ListaFunc.Count > 0)
    {
         <p>
        <div class="editor-label">
          <b> Relação de Aniversariantes da Semana</b>
        </div>
        <div>
            @grid.GetHtml( tableStyle: "tableAn",
        alternatingRowStyle: "alternateAn",
        headerStyle: "headerAn",
        footerStyle: "footerAn",
        mode: WebGridPagerModes.FirstLast | WebGridPagerModes.NextPrevious,
        firstText: "Primeiro",
        previousText: "Anterior",
        nextText: "Próximo",
        lastText: "Último",columns: grid.Columns(
              grid.Column("Login", header:"Nome", format: @<text>@item.Login</text>),
              grid.Column("IdInsp", header:"Inspetoria", format: @<text>@item.IdInsp</text>),
              grid.Column("Setor", header:"Setor", format: @<text>@item.Setor</text>),
              grid.Column("DtNasc", header:"Data", format: @<text><center>@item.DtNasc<center></text>)))
        </div>
            </p>
    }
}

        </div>
    </section>   
}

